package com.cloud.mall.test.client;

import com.cloud.mall.test.client.impl.OrderClientImpl;
import com.cloud.mall.conf.feign.CustomFeignInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: 梁二东
 * @Date: 2024/12/4 12:11
 * @Description:
 **/
@FeignClient(name = "order-service", fallbackFactory = OrderClientImpl.class, configuration = CustomFeignInterceptor.class)
public interface OrderClient {

    @GetMapping("/hello")
    String hello(@RequestParam(name = "name", defaultValue = "unknown user") String name);
}
